package com.thinkmore.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;

import java.io.Serializable;

/**
 * <p>
 * 本示例实际并不需要使用以下注解，注解仅作为演示使用
 * </p>
 *
 * @author tudou
 * @since 2019-12-08
 */
@TableName(value = "user")//对应的数据库名称
public class MpUser implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.NONE)//对应的数据库表主键,默认主键生成策略NONE
    private String id;
    @TableField(value = "user_name")//对应的数据训字段名
    private String userName;
    @TableField(exist = false)//数据库并不存在这个字段
    private String xxx;

    @TableField(condition = SqlCondition.EQUAL)//默认就是=号查询
    private String password;
    private String nickName;

    private String mobile;

    private String email;

    private Integer fkRoleId;

    private Integer stat;

    private LocalDateTime ctime;

    private LocalDateTime utime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getFkRoleId() {
        return fkRoleId;
    }

    public void setFkRoleId(Integer fkRoleId) {
        this.fkRoleId = fkRoleId;
    }

    public Integer getStat() {
        return stat;
    }

    public void setStat(Integer stat) {
        this.stat = stat;
    }

    public LocalDateTime getCtime() {
        return ctime;
    }

    public void setCtime(LocalDateTime ctime) {
        this.ctime = ctime;
    }

    public LocalDateTime getUtime() {
        return utime;
    }

    public void setUtime(LocalDateTime utime) {
        this.utime = utime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName=" + userName +
                ", password=" + password +
                ", nickName=" + nickName +
                ", mobile=" + mobile +
                ", email=" + email +
                ", fkRoleId=" + fkRoleId +
                ", stat=" + stat +
                ", ctime=" + ctime +
                ", utime=" + utime +
                "}";
    }
}
